<template>
    <CommonContainer title="信审批复建议">
        <el-table
            :data="records"
            :header-cell-style="{ background: '#FAFAFA', color: '#000000' }" border>
            <el-table-column
                align="center"
                prop="approval"
                label="信审批复建议"
                min-width="120">
                <template v-slot="{row}">
                    {{row.approval|creditSuggestionApproval}}
                </template>
            </el-table-column>
            <el-table-column
                show-overflow-tooltip
                align="center"
                prop="remark"
                label="说明"
                min-width="120">
            </el-table-column>
            <el-table-column
                align="center"
                prop="application"
                label="申请台数"
                min-width="120">
            </el-table-column>
            <el-table-column
                align="center"
                prop="pass"
                label="通过总台数"
                min-width="120">
            </el-table-column>
            <el-table-column
                align="center"
                prop="refuse"
                label="拒绝总台数"
                min-width="120">
            </el-table-column>
            <el-table-column
                align="center"
                prop="auditTime"
                label="提交时间"
                min-width="120">
            </el-table-column>
            <el-table-column
                align="center"
                prop="auditPerson"
                label="提交人"
                min-width="120">
            </el-table-column>
            <el-table-column
                align="center"
                prop="approvalStatus"
                label="状态"
                min-width="120">
                <template v-slot="{row}">
                  <span v-if="row.rejectionMark==1">批复建议被驳回</span>
                  <span v-else>{{row.approvalStatus | creditSuggestionApprovalStatus}}</span>

                </template>
            </el-table-column>
            <el-table-column
                align="center"
                prop="updateTime"
                label="操作"
                min-width="120"
                fixed="left"
            >
                <template v-slot="{row}">
                    <e-button size="mini" type="text" @click="goDetail(row)"
                    >查看
                    </e-button>
                </template>
            </el-table-column>
        </el-table>
    </CommonContainer>
</template>

<script>
export default {
    components: {},
    props: {
        records:{
            type:Array,
            default:()=>{
                return []
            }
        }
    },
    data() {
        return {}
    },
    // 方法集合
    methods: {
        goDetail(row){
            this._toPage({
                name:'ReplySuggestionDetail',
                query:{
                    id:row.id
                }
            })
        }
    },
    // 生命周期 - 挂载完成（可以访问 DOM 元素）
    mounted() {
    },

}
</script>

<style lang="scss" scoped>
</style>
